<include file="__THEME__/public_header" />
<script src="__APP__/js/common.js" type="text/javascript"></script>
<script>
window.onload=function()
{
	//公用库
	higher_common();
}
</script>
<script src="__THEME__/js/gjwjs/jquery.mzpinterest.js"></script>
<div class="main mt35 clearfix">
	<div class="plr40 pt20 main_box_index clearfix">
        <div class="fl cent_l_box cent_l_box_a">
            <h3 class="tit_list tit_list_a">榜单导航</h3>
            <ul>
			<li><a href="{:U('classroom/Ranking/index')}">榜单家族</a></li>
			<li><a href="{:U('classroom/Ranking/video')}">畅销榜单(视频)</a></li>
			<li class="sel_cent"><a href="{:U('classroom/Ranking/album')}">畅销榜单(专辑)</a></li>
			<li><a href="{:U('classroom/Ranking/day_list')}">每日上新</a></li>
			<li><a href="{:U('classroom/Ranking/yuanchuang')}">原创榜</a></li>
			<li><a href="{:U('classroom/Ranking/jingxuan')}">精选榜</a></li>
			<!--<li><a href="{:U('classroom/Ranking/index')}">争霸赛榜单</a></li>-->
            </ul>
        </div>
        <div class="box_list_r clearfix">
            <div class="u_ttl bor_b clearfix">
                <h3 class="fl bor_l_lan">畅销榜单(专辑)</h3>
            </div>
            <div class="clearfix">
            <ul id="page_list">
			
            </ul>
            </div>
            <div data-pageid="1" class="pinterestmore more_ck_box" style="height:70px;">
                <a class="more_ck" href="javascript:void(0);" style="position:relative;top:20px;"></a>
        	</div>
    	</div>
    </div>
</div>
<include file="__THEME__/public_footer_g" />
</body>
<script type="text/javascript">
	//关注/取消关注
	function setFollow(uid, follow){
		action = follow?'doFollow':'unFollow';
		$.post(U('public/Follow/'+action), {fid:uid}, function(data){
			if(data.status){
				notes('操作成功', 'success');
				setTimeout('window.location.reload()', 1500);
			}else{
				notes('操作失败', 'failure');
			}
		}, 'json');
	}
	function zuhe(){
		var oBoxMainb=$('#page_list .pinterestitem');
		oBoxMainb.each(function(){
			scheckbox($(this));
		});
	}
$(function(){
	//关注/取消关注
	$('#fellow_status').live('click', function(e){
		var uid = $(this).attr('data-uid');
		if(!uid) return ;
		var type = $(this).attr('data-status')==1?false:true;
		setFollow(uid,type);
	});
});
var mzobj = null;
$(function(){
	$('#page_list').mzpinterest({
		url:U('classroom/Ranking/getSingleList'),
		level:2,
		data:{
			type:'album',
			limit:10,
			p:1
		}
	},
	function(_data){
		if((_data.nowPage+1) > _data.totalPages){
			return '';
		}else{
			var html  = '<div data-pageid="'+_data.nowPage+'" class="pinterestmore more_ck_box" style="height:70px;">';
			    html += '<a class="more_ck" href="javascript:void(0);" style="position:relative;top:20px;"></a>';
			    html += '</div>';
			return html;
		}
	},
	function(){
		zuhe();	
	});
});
</script>
</html>